package com.imeth.base.model;

import java.io.Serializable;

/**
 * User: weihuang.peng
 * Date: 2015/12/13
 * Time: 9:21
 */
public class Result<T> implements Serializable {

    private String message;

    private int status;

    private T result;

    private long timestamp = System.currentTimeMillis();

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public Result(int status, String message, T result) {
        this.message = message;
        this.status = status;
        this.result = result;
    }

    public Result(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public Result(int status) {
        this.status = status;
    }

    public Result() {
    }
}
